import { Controller, Get, Post } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}
  
  @Get()
  getRoot():string{
    return 'root';
  }

  @Get('Hello')
  getHello(): string {
    return this.appService.getHello();
  }
  @Post('world')
  postWord():  Array<string> {
    return this.appService.postData();
  }
}
